home *** CD-ROM | disk | FTP | other *** search
/ 500 MB Nyheder Direkte fra Internet 9 / 500 MB nyheder direkte fra internet CD 9.iso / start / zipped / dos / novell / sdk.exe / SDK / INCLUDE / NWDSASA.H < prev    next >
C/C++ Source or Header  |  1995-07-24  |  3KB  |  109 lines

  1. /******************************************************************************
  2.  
  3.   $Workfile:   nwdsasa.h  $
  4.   $Revision:   1.10  $
  5.   $Modtime::   20 Jul 1995 11:53:24                        $
  6.   $Copyright:
  7.  
  8.   Copyright (c) 1989-1995 Novell, Inc.  All Rights Reserved.                      
  9.  
  10.   THIS WORK IS  SUBJECT  TO  U.S.  AND  INTERNATIONAL  COPYRIGHT  LAWS  AND
  11.   TREATIES.   NO  PART  OF  THIS  WORK MAY BE  USED,  PRACTICED,  PERFORMED
  12.   COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED,  ABRIDGED, CONDENSED,
  13.   EXPANDED,  COLLECTED,  COMPILED,  LINKED,  RECAST, TRANSFORMED OR ADAPTED
  14.   WITHOUT THE PRIOR WRITTEN CONSENT OF NOVELL, INC. ANY USE OR EXPLOITATION
  15.   OF THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE PERPETRATOR TO
  16.   CRIMINAL AND CIVIL LIABILITY.$
  17.  
  18.  *****************************************************************************/
  19. #if ! defined ( NWDSASA_H )
  20. #define NWDSASA_H
  21.  
  22. #if ! defined ( NTYPES_H )
  23. #include "ntypes.h"
  24. #endif
  25.  
  26. #if ! defined ( NWCALDEF_H )
  27. #include "nwcaldef.h"
  28. #endif
  29.  
  30. #if ! defined ( NWDSDC_H )
  31. #include "nwdsdc.h"     /* for NWDSContextHandle typedef */
  32. #endif
  33.  
  34. #include "npackon.h"
  35.  
  36. #define SESSION_KEY_SIZE   16
  37. typedef nuint8 NWDS_Session_Key_T[SESSION_KEY_SIZE];  /* Optional session key */
  38. typedef NWDS_Session_Key_T N_FAR *  pNWDS_Session_Key_T;
  39.  
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43.  
  44. N_EXTERN_LIBRARY (NWDSCCODE)
  45. NWDSAuthenticate
  46. (
  47.    NWCONN_HANDLE        conn,
  48.    nflag32              optionsFlag,
  49.    pNWDS_Session_Key_T  sessionKey
  50. );
  51.  
  52. N_EXTERN_LIBRARY (NWDSCCODE)
  53. NWDSAuthenticateConn
  54. (
  55.    NWDSContextHandle context,
  56.    NWCONN_HANDLE     connHandle
  57. );
  58.  
  59. N_EXTERN_LIBRARY (NWDSCCODE)
  60. NWDSChangeObjectPassword
  61. (
  62.    NWDSContextHandle context,
  63.    nflag32           optionsFlag,
  64.    pnstr8            objectName,
  65.    pnstr8            oldPassword,
  66.    pnstr8            newPassword
  67. );
  68.  
  69. N_EXTERN_LIBRARY (NWDSCCODE)
  70. NWDSGenerateObjectKeyPair
  71. (
  72.    NWDSContextHandle contextHandle,
  73.    pnstr8            objectName,
  74.    pnstr8            objectPassword,
  75.    nflag32           optionsFlag
  76. );
  77.  
  78. N_EXTERN_LIBRARY (NWDSCCODE)
  79. NWDSLogin
  80. (
  81.    NWDSContextHandle context,
  82.    nflag32           optionsFlag,
  83.    pnstr8            objectName,
  84.    pnstr8            password,
  85.    nuint32           validityPeriod
  86. );
  87.  
  88. N_EXTERN_LIBRARY (NWDSCCODE)
  89. NWDSLogout
  90. (
  91.    NWDSContextHandle context
  92. );
  93.  
  94. N_EXTERN_LIBRARY (NWDSCCODE)
  95. NWDSVerifyObjectPassword
  96. (
  97.    NWDSContextHandle context,
  98.    nflag32           optionsFlag,
  99.    pnstr8            objectName,
  100.    pnstr8            password
  101. );
  102.  
  103. #ifdef __cplusplus
  104. }
  105. #endif
  106.  
  107. #include "npackoff.h"
  108. #endif
  109.